from typing import List,Set,Tuple,Dict
"""
这个函数做了下面这些事情
    接收 first_name 和 last_name 作为参数
    通过 title() 方法将字符串转换为标题格式 将每个参数的第一个字母转换成大写形式
    中间用一个空格来拼接它们
"""
def get_full_name(first_name: str, last_name:str):
    full_name = first_name.title() + " " + last_name.title()
    return full_name

def get_name_with_age(name:str, age:int):
    name_with_age = name + "is this old: " + str(age)
    return name_with_age

def process_items(items: list[str]):
    for item in items:
        print(item)
        return item

def process_items_one(items_t: Tuple[int,int,str], items_s: Set[bytes]):
    return items_t, items_s

def process_items_two(items_d: Dict[str,float]):
    for item_name, item_price in items_d.items():
        print(item_name, item_price)
        return item_name, item_price

class Person:
    def __init__(self, name: str):
        self.name = name

def get_person_name(one_person: Person):
    return one_person.name

if __name__ == "__main__":
    print(get_full_name("john", "doe"))
    print(get_name_with_age("john", 20))
    process_items(["apple", "banana", "orange"])